package com.hxl.controller;


import com.hxl.config.LogAnnotation;
import com.hxl.entity.CmfzMenu;
import com.hxl.service.CmfzMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * InnoDB free: 10240 kB 前端控制器
 * </p>
 *
 * @author hxl
 * @since 2020-08-18
 */
@RestController
@RequestMapping("menu")
public class CmfzMenuController {
    @Autowired
    private CmfzMenuService cmfzMenuService;
    @RequestMapping("menus")
    @LogAnnotation(content = "查看菜单信息",type = "select")
    public List<CmfzMenu> selectMenu(){
        return cmfzMenuService.selectMenu();
    }
}
